#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack.h"
#include"Queue.h"

void test_queue()
{
	Queue q;
	QueueInit(&q);
	for (int i = 0; i <= 10; i++)
	{
		QueuePush(&q, i);
		printf("%d\n", QueueBack(&q));
	}
	QueueDestroy(&q);
}

void test_stack()
{
	Stack st;
	StackInit(&st);
	int arr[10] = { 1,2,3,4,5,6,7,8,9,10 };
	for (auto e : arr)
		StackPush(&st, e);
	for (int i = st._top; i >= 0; i--)
	{
		cout << StackTop(&st) << endl;
		StackPop(&st);
	}
	StackDestroy(&st);
}

int main()
{
    test_queue();
    return 0;
} 